package one.stand.controller;

import one.stand.request.ComponentProgramRequest;
import one.stand.request.ComponentVerifyTicketRequest;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: QIK
 * @CreateDate: 2019/5/9 14:41
 */
@RestController
@RequestMapping("wx")
public class WxController extends BaseController {

    @PostMapping("wxcallback")
    public String wxcallback(@RequestBody ComponentVerifyTicketRequest request){
        return wxService.wxcallback(request);

    }
    @PostMapping("program")
    public String program(@RequestBody ComponentProgramRequest request){
        return wxService.wxcallback(request);

    }
}
